package com.kstech.test.padxmledit;

import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {
    private FragmentManager fragmentManager;
    private FragmentTransaction fragmentTransaction;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        fragmentManager = getFragmentManager();
        fragmentTransaction = fragmentManager.beginTransaction();
        ListFragMent listFragMent = new ListFragMent();
        ListEditFragment listEditFragment = new ListEditFragment();
        fragmentTransaction.replace(R.id.ll_list,listFragMent,"list");
        fragmentTransaction.replace(R.id.ll_list_edit,listEditFragment,"list_edit");
        fragmentTransaction.commit();
    }
}
